extends ../layout

block content
    link(type='text/css', rel='stylesheet', href='/css/account/signup.css')
    div.baffuer
        img(src='/images/uliicon.png')
        span.youspan 用户注册

    div.form-content
        div.public-vall
            div.form-box
                div.think-resign
                    if next
                        form#resignform(name='resignform', method='post', action='/account/register/?next=#{next}')
                    else
                        form#resignform(name='resignform', method='post', action='/account/register/')

                            table(border='0', cellspacing='0', cellpadding='0')
                                tr
                                    th(width='80') 用户名
                                    td
                                        input#username.input(type='text', name='username', maxlength='16')
                                        span #{req}
                                tr
                                    th 密码
                                    td
                                        input#password.input(type='password', name='password', maxlength='25')
                                tr
                                    th 确认密码
                                    td
                                        input#password2.input(type='password', name='password2', maxlength='25')
                                tr
                                    th
                                    td
                                        input#resignsub.input(type='submit', name='sub', value='提交')
                                        input(type='hidden',name='_csrf', value='#{csrf}')


    script(type='text/javascript', src='/js/jquery.validate.js')
    script(type='text/javascript', src='/js/account/signup.js')